#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <head.h>
int main()
{
int n,i;
char *a;
FILE *fp = fopen("1.txt", "a+");
if (fp==0)
 { 
printf("can't open file\n"); 
return 0;
}
//fseek(fp, 0, SEEK_END);
//char sz_add[] = "123456789\n";
//fwrite(sz_add, strlen(sz_add), 1, fp);
//fclose(fp);
//n=ftell(fp); 
//a=(char *)malloc(sizeof(char)*(len+1));
//memset(a,0,n+1);
//rewind(fp); 
//fread(a,1,n,fp);
while((ch==fgetc(fp))!=EOF)
{
a[i]=ch;
i++;
a[i]='\0';
fclose(fp);
}
tx(a,n);
tc(a,n);
return 0;
}
}

